package 经理与员工工资案例;

public class Manager extends Employee{
    private String level;

    public Manager(String name, String address, String employeeID, double salary, int seniority, String level) {
        super(name, address, employeeID, salary, seniority);
        this.level = level;
    }

    public String getLevel() {
        return level;
    }

    public void raiseSalary() {
        setSalary((getSalary() * 1.2));
    }

    @Override
    public String toString() {
        return super.toString() + "\nLevel: " + level;
    }
}
